package com.google.sydym6.logic.utils;

public final class ArrayUtils {
	
	public static short[] copyOf(short[] sourceArray, int length)
	{
		short[] result = new short[length];
		int lastIndex = sourceArray.length - 1;
		
		for(int i = 0; i < length; i++)
			if (i <= lastIndex) result[i] = sourceArray[i];
			else break;
		
		return result;
	}

}
